<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //函数（匿名函数）
        var fn = function () { }
        //函数（命名函数）
        function object() { }
        //新的命名函数
        var f = new Function('a', 'b', 'console.log(a + b)')
        f(1, 2)
    </script>
</body>

</html>